<template>
    <div>
        我是文档
    </div>
</template>

<script>
    export default {
      data() {
        return {
          params: null
        }
      },
      mounted() {
        window.addEventListener('message', (ev) => {
          console.log(ev)
          this.params = ev.data
        })
      }
    }
</script>

<style>

</style>
